class BaseController < ApplicationController
  
  include AuthenticatedSystem
  before_filter :login_from_cookie
  layout :set_layout
  
  #【参数】
  #【返回值】
  #【注意】
  #【作者】 by ljl 2012.08.17
  def set_layout
    if params[:controller] == "pin" && params[:action] == "create"
      "pin_board"
    elsif params[:controller] == "user" && params[:action] == "login"
      "login"
    else
      "default"
    end
  end
  
end
